package com.snowball.demo.exception.enums;

/**
 * Description:
 *
 * @Author: genezhao
 * @Date: 2018-06-27
 */
public enum  ResultCode {

    /**
     * 参数索引异常
     */
    UNKNOWN_ERROR("1300","未捕获的未知异常"),
    PARAMETER_IDX_ERROR("1301", "违背了唯一索引规则"),
    RESULT_ERROR("1302","查询结果应该是一个");

    private String code;
    private String msg;

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
